<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选择器</title>

    <style>
        /*<!--元素选择器-->*/
        div{
            color: red;
        }
        /*类选择器*/
        .cls{
            color: lavender;
        }
        /*元素选择器*/
        #d{
            color: aqua;
        }
    </style>
</head>
<body>
<div>div1</div>
<div class="cls">div2</div>
<div class="cls" id="d">div3</div>

</body>
</html>